// register svg icon
import './theme/index.less';
import './theme/base.less';
import 'splitpanes/dist/splitpanes.css';
import '@/assets/style/main.css';

import { createApp } from 'vue';

import App from './App.vue';

import { setupRouter } from './router';
import { setupStore } from '@/stores';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

async function launchApp() {
  const app = createApp(App);
  app.use(ElementPlus);

  // Configure store
  setupStore(app);

  setupRouter(app);

  app.mount('#app');
}

launchApp();
